package com.ruoyi.websocket.controller;

import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson2.JSON;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ruoyi.cfuser.api.rescue.domain.RescueTask;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.websocket.service.GrabOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/order")
public class GrabOrderController {

    @Autowired
    private GrabOrderService grabOrderService;

    @PutMapping
    public AjaxResult grabOrder(@RequestBody Map<String,Object> map) {
        return grabOrderService.grabOrder(map);
    }
}
